FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.phr
Resource TypeStructureDefinition
IdStructureDefinition-SocialMedia.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/HL7/personal-health-record-format-ig/StructureDefinition-SocialMedia.html
URLhttp://hl7.org/fhir/uv/phr/StructureDefinition/SocialMedia
Version1.0.0-ballot2
Statusactive
Date2026-07-09T21:10:21+00:00
NameSocialMedia
TitleSocial Media Post
Realmuv
Authorityhl7
DescriptionA logical model representing a social media post from platforms such as Facebook, Instagram, Twitter/X, Tumblr, etc. Captures the post content, media attachments, and metadata. Relevant for patient-reported outcomes, behavioral health context, and longitudinal health narratives.
Typehttp://hl7.org/fhir/uv/phr/StructureDefinition/SocialMedia
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition SocialMedia

NameFlagsCard.TypeDescription & Constraintsdoco
.. SocialMedia 0..*BaseSocial Media Post
... subject 1..1Reference(Patient)The patient who authored or owns the post
... platform 0..1CodeableConceptSocial media platform (e.g. Facebook, Instagram, Twitter/X, Tumblr)
... postDateTime 0..1dateTimeDate and time the post was published
... title 0..1stringTitle or headline of the post, if applicable
... body 0..1markdownText body or description of the post
... url 0..1urlURL link to the original post
... media 0..*BackboneElementMedia attachments on the post
.... type 0..1CodeableConceptType of media (e.g. image, video, audio, link)
.... url 0..1urlURL of the media resource
.... description 0..1stringAlt text or description of the media
... tag 0..*stringTags or hashtags associated with the post
... visibility 0..1CodeableConceptVisibility or privacy setting (e.g. public, friends-only, private)

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "SocialMedia",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pe"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/phr/ImplementationGuide/hl7.fhir.uv.phr"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/phr/ImplementationGuide/hl7.fhir.uv.phr"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/uv/phr/StructureDefinition/SocialMedia",
  "version": "1.0.0-ballot2",
  "name": "SocialMedia",
  "title": "Social Media Post",
  "status": "active",
  "date": "2026-07-09T21:10:21+00:00",
  "publisher": "HL7 International / Patient Empowerment",
  "contact": [
    {
      "name": "HL7 International / Patient Empowerment",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/patientempowerment"
        }
      ]
    }
  ],
  "description": "A logical model representing a social media post from platforms such as Facebook, Instagram, Twitter/X, Tumblr, etc. Captures the post content, media attachments, and metadata. Relevant for patient-reported outcomes, behavioral health context, and longitudinal health narratives.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "http://hl7.org/fhir/uv/phr/StructureDefinition/SocialMedia",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "SocialMedia",
        "path": "SocialMedia",
        "short": "Social Media Post",
        "definition": "A logical model representing a social media post from platforms such as Facebook, Instagram, Twitter/X, Tumblr, etc. Captures the post content, media attachments, and metadata. Relevant for patient-reported outcomes, behavioral health context, and longitudinal health narratives.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "SocialMedia.subject",
        "path": "SocialMedia.subject",
        "short": "The patient who authored or owns the post",
        "definition": "The patient who authored or owns the post",
        "min": 1,
        "max": "1",
        "base": {
          "path": "SocialMedia.subject",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "SocialMedia.platform",
        "path": "SocialMedia.platform",
        "short": "Social media platform (e.g. Facebook, Instagram, Twitter/X, Tumblr)",
        "definition": "Social media platform (e.g. Facebook, Instagram, Twitter/X, Tumblr)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.platform",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "SocialMedia.postDateTime",
        "path": "SocialMedia.postDateTime",
        "short": "Date and time the post was published",
        "definition": "Date and time the post was published",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.postDateTime",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "SocialMedia.title",
        "path": "SocialMedia.title",
        "short": "Title or headline of the post, if applicable",
        "definition": "Title or headline of the post, if applicable",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "SocialMedia.body",
        "path": "SocialMedia.body",
        "short": "Text body or description of the post",
        "definition": "Text body or description of the post",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.body",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "markdown"
          }
        ]
      },
      {
        "id": "SocialMedia.url",
        "path": "SocialMedia.url",
        "short": "URL link to the original post",
        "definition": "URL link to the original post",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.url",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "url"
          }
        ]
      },
      {
        "id": "SocialMedia.media",
        "path": "SocialMedia.media",
        "short": "Media attachments on the post",
        "definition": "Media attachments on the post",
        "min": 0,
        "max": "*",
        "base": {
          "path": "SocialMedia.media",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "SocialMedia.media.id",
        "path": "SocialMedia.media.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "SocialMedia.media.extension",
        "path": "SocialMedia.media.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "SocialMedia.media.modifierExtension",
        "path": "SocialMedia.media.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "SocialMedia.media.type",
        "path": "SocialMedia.media.type",
        "short": "Type of media (e.g. image, video, audio, link)",
        "definition": "Type of media (e.g. image, video, audio, link)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.media.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "SocialMedia.media.url",
        "path": "SocialMedia.media.url",
        "short": "URL of the media resource",
        "definition": "URL of the media resource",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.media.url",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "url"
          }
        ]
      },
      {
        "id": "SocialMedia.media.description",
        "path": "SocialMedia.media.description",
        "short": "Alt text or description of the media",
        "definition": "Alt text or description of the media",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.media.description",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "SocialMedia.tag",
        "path": "SocialMedia.tag",
        "short": "Tags or hashtags associated with the post",
        "definition": "Tags or hashtags associated with the post",
        "min": 0,
        "max": "*",
        "base": {
          "path": "SocialMedia.tag",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "SocialMedia.visibility",
        "path": "SocialMedia.visibility",
        "short": "Visibility or privacy setting (e.g. public, friends-only, private)",
        "definition": "Visibility or privacy setting (e.g. public, friends-only, private)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SocialMedia.visibility",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "SocialMedia",
        "path": "SocialMedia",
        "short": "Social Media Post",
        "definition": "A logical model representing a social media post from platforms such as Facebook, Instagram, Twitter/X, Tumblr, etc. Captures the post content, media attachments, and metadata. Relevant for patient-reported outcomes, behavioral health context, and longitudinal health narratives."
      },
      {
        "id": "SocialMedia.subject",
        "path": "SocialMedia.subject",
        "short": "The patient who authored or owns the post",
        "definition": "The patient who authored or owns the post",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "SocialMedia.platform",
        "path": "SocialMedia.platform",
        "short": "Social media platform (e.g. Facebook, Instagram, Twitter/X, Tumblr)",
        "definition": "Social media platform (e.g. Facebook, Instagram, Twitter/X, Tumblr)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "SocialMedia.postDateTime",
        "path": "SocialMedia.postDateTime",
        "short": "Date and time the post was published",
        "definition": "Date and time the post was published",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "SocialMedia.title",
        "path": "SocialMedia.title",
        "short": "Title or headline of the post, if applicable",
        "definition": "Title or headline of the post, if applicable",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "SocialMedia.body",
        "path": "SocialMedia.body",
        "short": "Text body or description of the post",
        "definition": "Text body or description of the post",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "markdown"
          }
        ]
      },
      {
        "id": "SocialMedia.url",
        "path": "SocialMedia.url",
        "short": "URL link to the original post",
        "definition": "URL link to the original post",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "url"
          }
        ]
      },
      {
        "id": "SocialMedia.media",
        "path": "SocialMedia.media",
        "short": "Media attachments on the post",
        "definition": "Media attachments on the post",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "SocialMedia.media.type",
        "path": "SocialMedia.media.type",
        "short": "Type of media (e.g. image, video, audio, link)",
        "definition": "Type of media (e.g. image, video, audio, link)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "SocialMedia.media.url",
        "path": "SocialMedia.media.url",
        "short": "URL of the media resource",
        "definition": "URL of the media resource",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "url"
          }
        ]
      },
      {
        "id": "SocialMedia.media.description",
        "path": "SocialMedia.media.description",
        "short": "Alt text or description of the media",
        "definition": "Alt text or description of the media",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "SocialMedia.tag",
        "path": "SocialMedia.tag",
        "short": "Tags or hashtags associated with the post",
        "definition": "Tags or hashtags associated with the post",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "SocialMedia.visibility",
        "path": "SocialMedia.visibility",
        "short": "Visibility or privacy setting (e.g. public, friends-only, private)",
        "definition": "Visibility or privacy setting (e.g. public, friends-only, private)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  }
}